package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

public interface OrderDetailMapper {
    void saveBath(@Param("orderDetailList") ArrayList<OrderDetail> orderDetailList);

    @Select("SELECT * FROM order_detail WHERE order_id=#{id}")
    List<OrderDetail> findById(Long id);

}
